package com.hhkj.study.admin.user.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author luowu
 * @Date 2024/10/14 涵 9:22:48
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UserListenGroupPo extends UserListen {

    /**
     * 统计数量用
     */
    @TableField(exist = false, value = "count(*)", insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Integer count;

    /**
     * 分组统计所用
     */
    @TableField(exist = false, value = "CONCAT(order_item_id,\"-\",course_id)", insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private String orderItemCourseConcat;
}
